import prod from './prod'
import beta from './beta'
import pre from './pre'

let getConfig = ()=>{
        if(location.host == 'live.csc108.com'){
          console.log("prod cfg")
          return prod
        }
        else if(location.hostname=='testlive.csc108.com'||location.hostname == 'betasaas.yundzh.com'|| location.hostname =='127.0.0.1' || location.hostname =='localhost' ){
          console.log("beta cfg")
          return beta
        }else if(location.hostname == 'presaas.yundzh.com'){
          console.log("pre cfg")
          return pre
        }else{
          console.log("prod cfg")
          return prod
        }
  }

export default  getConfig()
